module.exports = {
  publicPath: "/",
  devServer: {
    host: "127.0.0.1",
    port: 8815,
    proxy: {
      "/java2api": {
        target: "https://221.7.196.174:28699", // 正式
        // target: 'http://123.60.23.43:28699/', // 生产
        // target: 'http://ty.dev.tmusoft.com:22216' ,//本地开发使用
        changeOrigin: true,
        pathRewrite: {
          "^/java2api": "",
        },
      },
      "/getToken": {
        //请求新token
        // target: 'http://ty.dev.tmusoft.com:22211', // 测试
        target: "https://221.7.196.174:28682", //正式
        changeOrigin: true,
        pathRewrite: {
          "^/getToken": "",
        },
      },
      "/api": {
        target: "https://upload.16988.com",
        changeOrigin: true,
        secure: true,
        ws: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
  productionSourceMap: false,
  lintOnSave: false,
};
